package com.visitor.self;

import java.util.ArrayList;
import java.util.List;

public class ObjectStructure {

    private List<Judge> judgeList = new ArrayList<>();

    public void addJudge(Judge judge){
        if(judge!=null){
            judgeList.add(judge);
        }
    }

    public void removeJudge(Judge judge){
        if(judgeList.contains(judge)){
            judgeList.remove(judge);
        }
    }

    public void display(Score score){
        for(Judge judge:judgeList){
            judge.show(score);
        }
    }
}
